package zhh.tangbao.user.vo;

import java.util.Set;

/**
 * @author 粥灰灰
 * @created 2022/11/5
 * @version 1.0
 * @Description 描述
 */
public class AuthorityVo {

    private Set<String> authorities;
    private String token;

    /**
     * token key
     * 因为token是通过某种方式进行加密的，需要密匙来进行解密
     * 但解密方法不会暴露在前端代码，只需要前端把token和key回传即可
     */
    private String key;

    private String userName;

    private String userAvatar;

    public AuthorityVo() {
    }

    public Set<String> getAuthorities() {
        return authorities;
    }

    public AuthorityVo setAuthorities(Set<String> authorities) {
        this.authorities = authorities;
        return this;
    }

    public String getToken() {
        return token;
    }

    public AuthorityVo setToken(String token) {
        this.token = token;
        return this;
    }

    public String getKey() {
        return key;
    }

    public AuthorityVo setKey(String key) {
        this.key = key;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public AuthorityVo setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public AuthorityVo setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
        return this;
    }

}
